package demo3;

public class Test {
    public static void main(String[] args) throws CloneNotSupportedException{
        Person person1 = new Person("kay", 20);
        Person person2 = (Person) person1.clone();

        person2.money.money = 19.9;

        System.out.println(person1.toString());
        System.out.println(person2.toString());

    }
}
